package com.cpecc.dao.system;

import javax.annotation.Resource;

import org.hibernate.SessionFactory;
import org.springframework.stereotype.Repository;

import com.cpecc.model.system.ZheJiuFS;

@Repository
public class ZheJiuFSDao {

	@Resource
	private SessionFactory sessionFactory;
	
	public void setSessionFactory(SessionFactory sessionFactory) {
		this.sessionFactory = sessionFactory;
	}
	
	public ZheJiuFS get(String id){
		return (ZheJiuFS) sessionFactory.getCurrentSession().get(ZheJiuFS.class, id);
	}
}
